#!/usr/bin/python
total = 0
a, b = 0, 1
while b < 4000000:
	a, b = b, a + b
	if a % 2: # if this condition is true meaning if a % 2 == 1
		continue
	total += a
print total
